package movie.test.as.seat.biz;

import java.util.List;
import java.util.Map;

import movie.test.as.seat.bean.SeatBean;
import movie.test.as.seat.dao.SeatDao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;

@Component
public class SeatBiz {

	@Autowired
	private SeatDao seatDao;

	public List<Map<String, Object>> getSeatList(JSONObject objs) {

		return seatDao.getSeatList(objs);
	}

	public int updateSeatList(List list) {

		return seatDao.updateSeatList(list);
	}

	public int updateSeatsById(JSONObject objs) {

		return seatDao.updateSeatsById(objs);
	}

	public Map<String, Object> getSeatsByHallId(Integer id) {

		return seatDao.getSeatsByHallId(id);
	}

	public Integer addSeats(List<SeatBean> lists) {

		return seatDao.addSeats(lists);
	}

	public Integer deleteHallSeats(Integer hallId) {

		return seatDao.deleteHallSeats(hallId);

	}

}
